<!DOCTYPE html>
<meta charset="utf-8" />
<title>display: none set dynamically</title>

<p id="hidden">Should not be visible</span>

<script>
  var hidden = document.getElementById("hidden");
  hidden.style.display = "none";
</script>
